import service from '@/utils/request'

const WaiterApi = {
    listWaiter:function(data){
        return service.get('waiter/page', {params:data})
      },
    addWaiter:function(data){
        return service.post('waiter', data)
    },
    editWaiter:function(data){
        return service.put('waiter', data)
    },
    deleteWaiter:function(data){
        return service.put('waiter/delete', data)
    },
    openWaiter:function(data){
      return service.put('waiter/openNotify', data)
    },
    getWaiterInfo(data){
        return service.get('waiter', {params:data})
    },
    listIdName(data){
        return service.get('waiter/listIdName', {params:data})
    },
    getRelationDepart(data){
        return service.get('waiterDepart/getRelationDepart', {params:data})
    },
    setDepart(data){
        return service.put('waiterDepart/setDepart',data)
    },
    importScheduleInfo(data){
        return service.get('scheduleInfo/importScheduleInfo',{params:data})
    },
    getScheduleList(data){
        return service.get("scheduleInfo/listByWaiter",{params:data})
    },
    checkoutWaterBusiness(data){
        return service.get("waiter/checkoutWaterBusiness",{params:data})
    }
    
}

export default WaiterApi
